<?php
	session_start();
	session_destroy();
	
	$referer = $_SERVER['HTTP_REFERER'];
	if (!$referer == '') {
		header('Location: '.$referer);
	} 
	else {
		?><script type="text/javascript">history.go(-1);</script><?php
	}

	exit();
?>